package com.springboot.cloud.gateway.api.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 网关路由表
 * </p>
 *
 * @author Bertram
 * @since 2019-11-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("gateway_route")
public class GatewayRoute extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 路由id
     */
    private String routeId;

    /**
     * uri路径
     */
    private String uri;

    /**
     * 判定器
     */
    private String predicates;

    /**
     * 过滤器
     */
    private String filters;

    /**
     * 排序
     */
    private Integer orders;

    /**
     * 描述
     */
    private String description;

    /**
     * 状态：Y-有效，N-无效
     */
    private String status;

    /**
     * 创建时间
     */
    private LocalDateTime createdTime;

    /**
     * 更新时间
     */
    private LocalDateTime updatedTime;

    /**
     * 创建人
     */
    private String createdBy;

    /**
     * 更新人
     */
    private String updatedBy;


}
